# coding: utf-8

# 这两个类型都支持ase equality operator，既：===。

puts "包含右侧"
(2..4).each {|x| puts x}

puts "\n不包含右侧"
(2...4).each {|x| puts x}

puts "\n使用在case语句中"
age = 28
case age
when 1..18
	puts "年轻人"
when 19..30
	puts "成年人"
else
	puts "有点老了"
end
		